<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"/>
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<title>设备列表</title>
		<link rel="stylesheet" href="css_js/css/bootstrap.min.css" />
		<link rel="stylesheet" href="dist/css/deviceList.css" />
		<link rel="stylesheet" href="dist/css/common.css" />
	</head>
	<body ng-app="deviceListApp" ng-controller="deviceListCtrl">
		<div class="bg_color">
			<nav class="navbar text-center">
				<div class="nav_stat">
					
				</div>
				<div class="nav_body">
						<img ng-click="go_back()" class="pull-left btn_top_left" src="dist/images/point/left.png">
					<span class="tit_title">设&nbsp;备</span>
					<span class="btn_top_right" ng-click="show_add()">
						<div class="nav_box">
							<button class="btn_border">+增加</button>
						</div>
					</span>					
				</div>
			</nav>
			<section>
				<div class="tab_list" >
			        <ul class="info_mul">
			        	<li class="" ng-repeat="obj in constList">
							<div class="info_mul_box">
								<a ng-click="show_device()" href="" class="clearfix">
									<span class="pull-left span_list_one">{{obj.name}}</span>
									<span class="pull-left span_list_main">{{obj.content}}</span>
									<span class="pull-right">
										<button class="pass_green sg_btn" ng-click="show_edit(obj)">修改</button>
									</span>
								</a>
							</div>
						</li>
			        </ul>
			    </div>
			</section>
			<!-- addbox start-->
			<div class="modal fade" id="addbox" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
			    <div class="modal-dialog modal_dialog">
			        <div class="modal-content">
			            <div class="modal-header">
			                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button> 
			            </div>
			            <div class="modal-body">
			                <form class="form-horizontal">
			                    <div class="form-group">
			                        <label class="bold_label control-label col-xs-3">设备名称</label>
			                        <input type="text"class="form-control"/>
			                    </div>
			                    <div class="form-group">
			                        <label class="bold_label control-label col-xs-3">所属项目</label>
			                        <input type="text"class="form-control"/>
			                    </div> 
			                </form>
			            </div>
			            <div class="modal-footer modal_footer">
			                <button type="button" class="submit_btn pass_green bold_label" ng-click="sure_add()">立即增加</button>
			            </div>
			        </div>
			    </div>
			</div>
    		<!-- addbox end-->
    		<!-- editbox start-->
			<div class="modal fade" id="editbox" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
			    <div class="modal-dialog modal_dialog">
			        <div class="modal-content">
			            <div class="modal-header">
			                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button> 
			            </div>
			            <div class="modal-body">
			                <form class="form-horizontal">
			                    <div class="form-group">
			                        <label class="bold_label control-label col-xs-3">设备名称</label>
			                        <input type="text" ng-model="editobj.name" class="form-control"/>
			                    </div>
			                    <div class="form-group">
			                        <label class="bold_label control-label col-xs-3">所属项目</label>
			                        <input type="text" ng-model="editobj.content" class="form-control"/>
			                    </div> 
			                </form>
			            </div>
			            <div class="modal-footer modal_footer">
			                <button type="button" class="submit_btn pass_green bold_label" ng-click="sure_edit()">立即修改</button>
			            </div>
			        </div>
			    </div>
			</div>
    		<!-- editbox end-->
		</div>
		<script src="css_js/js/jquery.min.js"></script>
		<script src="css_js/js/angular.min.js"></script>
		<script src="css_js/js/bootstrap.min.js"></script>
		<script src="dist/controller/deviceListCtrl.js"></script>
	</body>
</html>